import Vue from 'vue'
import Router from 'vue-router'
import hzone from '@/pages/hzone.vue'
import boxsgift from '@/pages/boxsgift.vue'
import manor from '@/pages/manorLanshan.vue'
import bubble from '@/pages/bubble.vue'
import party from '@/pages/party.vue'
import famous from '@/pages/famous.vue'
import mine1 from '@/pages/mine1.vue'
import regist from '../pages/regist.vue'

import Index from '../pages/index.vue'
import Position from '../pages/position.vue'
import Buycart from '../pages/buycart.vue'
import Find from '../pages/find.vue'
import Category from '../pages/Category.vue'
import Mine from '../pages/mine.vue'
import Detail from '../pages/detail.vue'
import kill from '../pages/kill.vue'
import ListIndex from '../pages/ListIndex.vue'
import HeaderSearch from '../pages/search.vue'
Vue.use(Router)

export default new Router({
	routes: [
		{
			path:'/kill',
			component:kill,
			name:'kill'
		},
		{
			path: '/hzone',
			component: hzone,
			name: 'hzone'
		},
			{
			path: '/regist',
			component: regist,
			name: 'regist'
		},
		{
			path: '/boxsgift',
			component: boxsgift,
			name: 'boxsgift'

		},
		{
			path: '/manor',
			component: manor,
			name: 'manor'
		},
		{
			path: '/bubble',
			component: bubble,
			name: 'bubble'
		},
		{
			path: '/party',
			component: party,
			name: 'party'
		},
		{
			path: '/famous',
			component: famous,
			name: 'famous'
		},
		{
			path: '/',
			component: Index,
			children: [
				{
					path: '',
					component: Position,
					name: 'Position'
				},
				{
					path: '/category',
					component: Category,
					name: 'Category'
				},
				{
					path: '/find',
					component: Find,
					name: 'Find'
				},
				{
					path: '/buycart',
					component: Buycart,
					name: 'Buycart'
				},
				{
					path: '/mine',
					component: Mine,
					name: 'Mine'
        },
        {
					path: 'mine1',
					component: mine1,
					name: 'mine1'
				}
			]
		},
		{
			path: '/detail/:id',
			component: Detail,
			name: 'Detail'
		},
		{
			path: 'user/login'
    },
    {
      path: '/listindex/:id/:key',
      component: ListIndex,
      name: 'listindex'
    },
    {
      path: '/search',
      component: HeaderSearch,
      name: 'search'
    }
  ]

})
